import request from '/@/utils/request';

const alarmManageApi = {

	// 报警消息管理============================================================

	alarmUserList(params: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage',
			method: 'get',
			params,
		})
	},

	alarmUserAdd(data: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage',
			method: 'post',
			data,
		})
	},

	alarmUserUpdate(data: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage',
			method: 'put',
			data,
		})
	},


	alarmUserDelete(data: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage',
			method: 'delete',
			data,
		})
	},


	GetUserByCommunityId(params: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage/getUser',
			method: 'get',
			params,
		})
	},


	getCommunityByUserId(params: object) {
		return request({
			url: '/api/v1/smoke/alarmMsgManage/getCommunityByUserId',
			method: 'get',
			params,
		})
	},



}
export default alarmManageApi